<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch"
          action="${request.getContextPath()}/wiplotpush/wiplotpush" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="wiplotpush"/>
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="wiplotpushExcel"/>
            <label>产品名称：</label>
            <g:select name="partName" from="${partList}" data-toggle="selectpicker" data-live-search="true"
                      optionKey="name" optionValue="name" value="${partName}" data-size="12" data-width="200"
                      noSelection="['': '===请选择===']" id="prod"/>&nbsp;
            <label>Module：</label>
            <g:select name="module" from="${ModuleList}" class="selectpicker" data-live-search="true"
                      data-live-search-placeholder="查找" data-toggle="selectpicker"
                      optionKey="label" optionValue="value" value="${module}" data-width="200"
                      noSelection="['': '===请选择===']" data-nextselect="#wipEqpid"
                      data-refurl="${request.getContextPath()}/JsonData/getOptionHTMLByTarget?module={value}&SYS_QUERY_NAME=eqpType"/>&nbsp;
            <label>设备类型：</label>
            <g:select name="eqpType" from="${eqptypeList}" data-toggle="selectpicker" data-live-search="true"
                      optionKey="label" optionValue="value" value="${eqpType}" data-width="200"
                      noSelection="['': '===请选择===']" id="wipEqpid"/>&nbsp;
            <label>等   级：</label>
            <g:select name="pri" from="${priorityList}" data-toggle="selectpicker" data-live-search="true"
                      optionKey="key_id" optionValue="key_id" value="${pri}" data-width="200"
                      noSelection="['': 'ALL']"/>&nbsp;<br>
            <label>生产状态：</label>
            <select name="state" data-toggle="selectpicker" data-live-search="true" data-width="200">
                <option value="">ALL</option>
                <option VALUE="RUN" <g:if test="${state == 'RUN'}">selected="selected"</g:if>>RUN</option>
                <option VALUE="WAIT" <g:if test="${state == 'WAIT'}">selected="selected"</g:if>>WAIT</option>
                <option VALUE="HOLD" <g:if test="${state == 'HOLD'}">selected="selected"</g:if>>HOLD</option>
                <option VALUE="RHLD" <g:if test="${state == 'RHLD'}">selected="selected"</g:if>>RHLD</option>
                <option VALUE="FHLD" <g:if test="${state == 'FHLD'}">selected="selected"</g:if>>FHLD</option>
            </select>&nbsp;
            <label>生产步骤：</label>
            <g:select name="stepname" from="${stepnameList}" data-toggle="selectpicker" data-live-search="true"
                      optionKey="stepname" optionValue="stepname" value="${stepname}" data-width="200"
                      noSelection="['': 'ALL']"/>&nbsp;
            <label>PPID：</label>
            <g:select name="ppid" from="${ppidList}" data-toggle="selectpicker" data-live-search="true"
                      optionKey="recipe_name" optionValue="recipe_name" value="${ppid}" data-width="200"
                      noSelection="['': 'ALL']"/>&nbsp;
            <label>queuetime ：</label>
            <input name="queuetime" value="${queuetime}" data-rule="number" type="text" class="input-sm"><br>
            <label>title：</label>
            <g:select name="recp" from="${stepDescList}" data-toggle="selectpicker" data-live-search="true"
                      optionKey="recp" optionValue="recp" value="${recp}" data-width="200"
                      noSelection="['': 'ALL']"/>&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <a type="button" class="btn btn-green"
               href="${request.getContextPath()}/wiplotpush/wiplotpush?export=xls"
               data-toggle="doexport" data-confirm-msg="确定要导出吗？" data-icon="sign-out">导出</a>
        </div>
    </form>
</div>


<div class="bjui-pageContent tableContent">
    <g:if test="${wipList.size() > 0}">
        <g:render template="wiplotpushExcel"></g:render>
    </g:if>
    <g:else>
        <g:render template="../template/emptyPanel"/>
    </g:else>
</div>
